<?php
/**
 * Name: SystemModel.class.php
 * Description:
 * User: DIY
 * Date: 2016/9/18
 * Time: 10:53
 */

namespace Common\Model;

use Think\Model;

class SystemModel extends Model{

    /*
     * 取得系统设置列表
     * return array(KEY=>Value)
     * */
    public function getSystemArrayList(){
        $system = $this->select();
        $sys_list = array();
        foreach($system as $k=>$v){
            $sys_list[$v['type']] = $v['value'];
        }
        return $sys_list;
    }
}